<template>
    <el-container>
        <el-main class="wrapper">
            <section class="panel cms-content">
                <div class="panel-body">

                </div>
            </section>
        </el-main>
    </el-container>
</template>
<!---->
<script>
    import {mapGetters} from 'vuex';
    import {AppletList, AppletUpdate} from '@/utils/request';
    import Pagination from '@/components/pagination';

    export default {
        components: {Pagination},
        data() {
            return {
                params: {
                    page: 1,kwd:''
                },
                listData: [],
            }
        },
        activated() {

        },
        computed: {
            ...mapGetters(['active', 'loading']),
        },
        methods: {
            //列表
            list(page) {
                if (page) {
                    this.params.page = page;
                }
                this.$store.dispatch('setLoading', true);
                AppletList({params: this.params}).then((res)=>{
                    if (res.code) {
                        this.$message.error(res.msg);
                    } else {
                        this.listData = res.data;
                    }
                    this.$store.dispatch('setLoading', false);
                })
            },


        }
    }
</script>
